<script setup lang='ts'>
import { ref } from 'vue';
import Confirm from './components/Confirm.vue';
const visible=ref(false)
</script>

<template>
    <div>
      <button @click="visible=true">删除</button>
      <Confirm v-if="visible" v-model="visible">
        <template #content>亲，您是否确认删除失效的商品</template>
      </Confirm>
    </div>
</template>

<style lang='less' scoped>

</style>


